﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using XbdSoft.WPFVersion.Common;

namespace XbdSoft.WPFVersion.UserControls
{
    /// <summary>
    /// Interaction logic for DownloadProgressUserControl.xaml
    /// </summary>
    public partial class DownloadProgressUserControl : UserControl
    {
        public static DependencyProperty DownloadDependencyProperty = DependencyProperty.Register("Download", typeof(IDownload), typeof(DownloadProgressUserControl), new PropertyMetadata());

        #region Ctor
        public DownloadProgressUserControl()
        {
            InitializeComponent();
        }
        #endregion

        #region Properties

        public IDownload Download 
        {
            get { return (IDownload)GetValue(DownloadDependencyProperty); }
            set { SetValue(DownloadDependencyProperty, value); }
        }

        #endregion

        private void UserControl_Loaded(object sender, RoutedEventArgs e)
        {

        }

    }
}
